//
//  BViewController.m
//  ObjcGo
//
//  Created by 邢伟新 on 2021/1/29.
//

#import "BViewController.h"

@interface BViewController ()

@end

@implementation BViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"B----%s",__func__);
    
    self.title = @"B";
    self.view.backgroundColor = [UIColor whiteColor];
}

-(void)loadView{
    [super loadView];
    NSLog(@"B----%s",__func__);
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    NSLog(@"B-----%s",__func__);
}
-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    NSLog(@"B-----%s",__func__);
    //禁用滑动手势
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.enabled = NO;
    }
}

-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    NSLog(@"B-----%s",__func__);
    
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.enabled = YES;
    }
}
-(void)viewDidDisappear:(BOOL)animated{
    [super viewDidDisappear:animated];
    NSLog(@"B-----%s",__func__);
}
-(void)dealloc{
    NSLog(@"B-----%s",__func__);
}





    

@end
